<?xml version="1.0" encoding="utf-8"?>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ page contentType="text/html; charset=UTF-8"%>  
 	
	<%@include file="loading.jsp" %>	
  	
<script type="text/javascript">
		     function okButton(){
      divSumir();
       $('#exlcuir').click();
       
     };
    
		
</script>
    <div id="divsumir" name="divsumir">
    
   <sj:dialog id="mybuttondialog" buttons="{'OK':function() {okButton();$(this).dialog('close');},'Cancel':function() { $(this).dialog('close'); } }" autoOpen="false" modal="true" title="Excluir Registro" effect="explode" hideEffect="explode">
     Excluir Estande? Lembre-se de que o Mural e os Links tambem serao apagados.
    </sj:dialog>
    
  <div id="divsumir" name="divsumir">
  <s:form action="manterestande!saveEstande" theme="simple"  method="post" id="form">
  
  <sj:a onclick="divSumir();" href="manterestande!deleteEstande?idCentro=%{idCentro}&idEstande=%{idEstande}" targets="main" id="exlcuir"></sj:a>
  

  	 <div id="nav">
      <!-- skiplink anchor: navigation -->
      <a id="navigation" name="navigation"></a>

      <div class="hlist">
        <ul>
         
         <li>
          	<sj:a id="retornar" onclick="divSumir();" href="mantercentro!editCentro?idCentro=%{idCentro}"  targets="main"  >Retornar
    		</sj:a> 
    	</li>
          <li>
          	<sj:a id="ajaxformlink" formIds="form"  targets="main" onclick="divSumir();" >Salvar
    		</sj:a>  
	      </li>
	      <s:if test="%{idEstande != null}">
	     	<li>
          		<sj:a openDialog="mybuttondialog">Excluir</sj:a>	
          	</li> 
	   	</s:if>
          
        </ul>
      </div>
    </div>	
  	<s:actionerror cssClass="ui-state-error ui-corner-all" cssStyle="padding: 0pt 0.7em;"/>  	 
  	<s:actionmessage cssClass="ui-state-highlight ui-corner-all" cssStyle="padding: 0pt 0.7em; margin-top: 20px;"/>
		
	 <fieldset class="ui-widget ui-widget-content ui-corner-all" style="margin: 10px">
  	 		<legend class="ui-state-default ui-corner-all">&nbsp;&nbsp;&nbsp;Estande&nbsp;&nbsp;&nbsp;</legend>
  	 		<br>
		<s:if test="%{idEstande != null}">	
				
					<s:hidden name="estande.id"/>
					<s:hidden name="idEstande" />
					<s:hidden name="estande.dtCriacao"/>
		</s:if>
		<table width="100%">
		<tr valign="top" style="height: 40px;">	
			<td>
    			<s:label value="Nome:"/>    		
    		</td>
    		<td>	
					<s:textfield name="estande.nome" />
					
					
					<s:hidden name="idCentro"/>
			</td>
			</tr>
			<tr>
			
			<td>	
				<s:label value="Coordenador:"/>
			</td>
			<td>	    		
    			
					<s:select name="idCoordenador" list="coordenadores" />
			</td>
			</tr>	
			<tr>
			
			<td>
  <script type="text/javascript">
	
	$(function()
	{
		$('.jquery_ckeditor').ckeditor();
	});	
	</script>
				 
				 <sj:textarea cssClass="jquery_ckeditor" cols="80"  label="Descrição" name="estande.descricao" rows="10"></sj:textarea>
				 
  		</td>
  		</tr>
			</table>
	
	</fieldset>
	
 </s:form>
 
 <s:if test="%{idEstande != null}">
 	
 	
 	 <sj:div href="listarmural?idCentro=%{idCentro}&idEstande=%{idEstande}" id="listamural" indicator="indicator2">
        <img id="indicator2" src="images/indicator2.gif" alt="Loading..." style="display:none"/>
    </sj:div>

</s:if>

 
 <s:if test="%{idEstande != null}">
	
 	
 	 <sj:div href="listarlinks?idCentro=%{idCentro}&idEstande=%{idEstande}" id="listalinks" indicator="indicator3">
        <img id="indicator3" src="images/indicator2.gif" alt="Loading..." style="display:none"/>
    </sj:div>

</s:if>



 
 <s:if test="%{idEstande != null}">
	
 	
 	 <sj:div href="listaranexos?idCentro=%{idCentro}&idEstande=%{idEstande}" id="listaanexos" indicator="indicator4">
        <img id="indicator4" src="images/indicator2.gif" alt="Loading..." style="display:none"/>
    </sj:div>

</s:if>

<s:if test="%{idEstande != null}">
 	 <sj:div href="listarColaboradores?idCentro=%{idCentro}&idEstande=%{idEstande}" id="listarColaboradores" indicator="indicator5">
        <img id="indicator5" src="images/indicator2.gif" alt="Loading..." style="display:none"/>
    </sj:div>
</s:if>
</div>
</div>


 	

